﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace JeevanVaisya
{
    public partial class Jeevan_Vaisya : Form
    {
        public Jeevan_Vaisya()
        {
            InitializeComponent();
        }

        private void Jeevan_Vaisya_Load(object sender, EventArgs e)
        {
            Login login = new Login();
            login.MdiParent = this;
            login.Show();
            if (login.choseUser != 1 && login.choseUser!=0)
            {
                String userName = login.userName;
                AdminHome adminHome = new AdminHome(userName);
                adminHome.MdiParent = this;
                login.Close();
                login.Dispose();
                adminHome.Show();
            }

        }
    }
}
